
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>spring配置 · 启路框架-使用手册</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="sso.html" />
    
    
    <link rel="prev" href="deploy.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    整体介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../ready/ready.html">
            
                <a href="../ready/ready.html">
            
                    
                    技术准备
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../ready/ide.html">
            
                <a href="../ready/ide.html">
            
                    
                    eclipse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../ready/build.html">
            
                <a href="../ready/build.html">
            
                    
                    本地构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../ready/nexus.html">
            
                <a href="../ready/nexus.html">
            
                    
                    私服构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../ready/run.html">
            
                <a href="../ready/run.html">
            
                    
                    运行调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../ready/specification.html">
            
                <a href="../ready/specification.html">
            
                    
                    结构和分包
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../base/baseReadme.html">
            
                <a href="../base/baseReadme.html">
            
                    
                    基础包介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../base/qiluTask-readme.html">
            
                <a href="../base/qiluTask-readme.html">
            
                    
                    qilu-task
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../base/cache-readme.html">
            
                <a href="../base/cache-readme.html">
            
                    
                    qilucache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../base/qiluMybatis-readme.html">
            
                <a href="../base/qiluMybatis-readme.html">
            
                    
                    qilu-mybatis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../base/logTrace-readme.html">
            
                <a href="../base/logTrace-readme.html">
            
                    
                    qilu-logTrace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../base/qilu-export-readme.html">
            
                <a href="../base/qilu-export-readme.html">
            
                    
                    qilu-export
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../base/httpService-readme.html">
            
                <a href="../base/httpService-readme.html">
            
                    
                    qilu-http-service
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../base/validateReadme.html">
            
                <a href="../base/validateReadme.html">
            
                    
                    qilu-validate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../state/state-course.html">
            
                <a href="../state/state-course.html">
            
                    
                    交易一致的由来
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../state/state-settle.html">
            
                <a href="../state/state-settle.html">
            
                    
                    qilu-state使用说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../state/state-demo.html">
            
                <a href="../state/state-demo.html">
            
                    
                    购买订单的处理示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="backSampleReadme.html">
            
                <a href="backSampleReadme.html">
            
                    
                    后台代码模板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="security.html">
            
                <a href="security.html">
            
                    
                    安全介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="deploy.html">
            
                <a href="deploy.html">
            
                    
                    部署集成
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.3" data-path="config.html">
            
                <a href="config.html">
            
                    
                    spring配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="sso.html">
            
                <a href="sso.html">
            
                    
                    SSO集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="example.html">
            
                <a href="example.html">
            
                    
                    常见代码示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../test/readme.html">
            
                <a href="../test/readme.html">
            
                    
                    关于测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../test/unitTest.html">
            
                <a href="../test/unitTest.html">
            
                    
                    单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../test/function.html">
            
                <a href="../test/function.html">
            
                    
                    功能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../test/noFunction.html">
            
                <a href="../test/noFunction.html">
            
                    
                    非功能测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../video/test.html">
            
                <a href="../video/test.html">
            
                    
                    视频
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../video/build.html">
            
                <a href="../video/build.html">
            
                    
                    项目构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../video/state.html">
            
                <a href="../video/state.html">
            
                    
                    交易一致
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >spring配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h1>
<p>&#x8FD9;&#x8FB9;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;,&#x4E3B;&#x8981;&#x662F;&#x6307;spring&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;.</p>
<p>website&#x6216;&#x8005;boot,&#x662F;&#x4E00;&#x5B9A;&#x4F1A;&#x7ED9;&#x6E90;&#x7801;&#x7684;,&#x8FD9;2&#x4E2A;&#x5DE5;&#x7A0B;&#x662F;&#x8D1F;&#x8D23;spring&#x542F;&#x52A8;&#x7684;.&#x9700;&#x8981;&#x5F04;&#x6E05;&#x695A;spring&#x5230;&#x5E95;&#x52A0;&#x8F7D;&#x4E86;&#x54EA;&#x4E9B;&#x4E1C;&#x897F;.</p>
<h2 id="applicationcontextxml">applicationContext.xml</h2>
<p>&#x65E0;&#x8BBA;&#x662F;website&#x5DE5;&#x7A0B;&#x8FD8;&#x662F;boot&#x5DE5;&#x7A0B;,&#x90FD;&#x4F1A;&#x4F7F;&#x7528;main/resources/applicationContext.xml&#x52A0;&#x8F7D;spring,&#x4E0D;&#x540C;&#x7684;&#x5730;&#x65B9;&#x5728;&#x4E8E;,website&#x5DE5;&#x7A0B;&#x4F1A;&#x901A;&#x8FC7;applicationContext&#x52A0;&#x8F7D;datasource&#x548C;transaction,boot&#x4E0D;&#x4F1A;,boot&#x9879;&#x76EE;&#x7684;datasource&#x662F;&#x901A;&#x8FC7;application-druid.yml&#x914D;&#x7F6E;&#x52A0;&#x8F7D;.</p>
<p>applicationContext&#x52A0;&#x8F7D;spring&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5217;&#x8868;,&#x8FD9;&#x8FB9;&#x7684;spring&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x57FA;&#x672C;&#x90FD;&#x5728;main/resources/spring&#x76EE;&#x5F55;&#x4E0B;.</p>
<table>
<thead>
<tr>
<th>&#x6587;&#x4EF6;&#x540D;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>spring-datasource.xml</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x7684;datasource,<strong style="color:red">&#x4E0D;&#x53EF;&#x6539;</strong><br>&#x4E00;&#x4E2A;&#x5E94;&#x7528;&#x53EA;&#x8FDE;&#x63A5;&#x4E00;&#x4E2A;DB<br><strong style="color:red">&#x63A8;&#x8350;&#x4F7F;&#x7528;JNDI,&#x76F4;&#x63A5;&#x914D;&#x7F6E;&#x7528;&#x6237;&#x540D;&#x5BC6;&#x7801;&#x4F1A;&#x6709;&#x5B89;&#x5168;&#x9690;&#x60A3;</strong></td>
</tr>
<tr>
<td>spring-transaction</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x7684;&#x4E8B;&#x52A1;,<strong style="color:red">&#x4E0D;&#x53EF;&#x6539;</strong><br>&#x540C;&#x65F6;&#x6CE8;&#x518C;transactionManager&#x548C;transactionTemplate</td>
</tr>
<tr>
<td>spring-security</td>
<td>&#x914D;&#x7F6E;&#x767B;&#x5F55;&#x7684;&#x5B89;&#x5168;&#x7B56;&#x7565;,&#x73B0;&#x573A;&#x6280;&#x672F;&#x4EBA;&#x5458;&#x53EF;&#x4EE5;&#x4FEE;&#x6539;&#x5185;&#x90E8;&#x7684;&#x5B9E;&#x73B0;,&#x5B9E;&#x73B0;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x5F00;&#x53D1;.&#x8BE6;&#x7EC6;&#x8BF7;&#x770B;<a href="security.html">&#x5B89;&#x5168;</a></td>
</tr>
<tr>
<td>spring-mybatis</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x7684;mybatis&#x7684;&#x5404;&#x79CD;&#x7B56;&#x7565;</td>
</tr>
<tr>
<td>spring-task</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x5185;&#x90E8;&#x7684;&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;,&#x8BE6;&#x7EC6;&#x8BF7;&#x770B;<a href="../base/autoTask-readme.md">autoTask</a>.</td>
</tr>
<tr>
<td>export-template</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x4F7F;&#x7528;&#x5230;&#x7684;&#x8D85;&#x7EA7;&#x5BFC;&#x51FA;&#x7684;&#x5B57;&#x6BB5;&#x5339;&#x914D;,&#x8BE6;&#x7EC6;&#x8BF7;&#x770B;<a href="../base/hyper-Export-readme.md">&#x8D85;&#x7EA7;&#x5BFC;&#x51FA;</a></td>
</tr>
<tr>
<td>spring-property.xml</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x4F7F;&#x7528;&#x7684;K-V&#x5C5E;&#x6027;&#x914D;&#x7F6E;.</td>
</tr>
<tr>
<td>cache/cache-ehcache.xml</td>
<td>&#x914D;&#x7F6E;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x7F13;&#x5B58;,&#x53EF;&#x4EE5;&#x66F4;&#x6362;&#x7F13;&#x5B58;&#x5B9E;&#x73B0;,&#x5207;&#x6362;spring&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5373;&#x53EF;,&#x8BE6;&#x7EC6;&#x8BF7;&#x770B;<a href="../base/cache-readme.html">&#x7F13;&#x5B58;</a></td>
</tr>
</tbody>
</table>
<h2 id="springmvc&#x914D;&#x7F6E;">springMVC&#x914D;&#x7F6E;</h2>
<p>dispatcher-servlet.xml&#x662F;website&#x63D0;&#x4F9B;&#x7ED9;springMVC&#x52A0;&#x8F7D;&#x7684;web&#x8D44;&#x6E90;&#x7684;&#x914D;&#x7F6E;.spring-mvc.xml&#x662F;boot&#x9879;&#x76EE;&#x63D0;&#x4F9B;&#x7ED9;springMVC&#x7684;&#x914D;&#x7F6E;.
2&#x4E2A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5927;&#x540C;&#x5C0F;&#x5F02;.dispatcher-servlet&#x6BD4;spring-mvc&#x591A;&#x52A0;&#x8F7D;&#x4E86;&#x4E00;&#x4E2A;spring-property&#x548C;fastjson&#x7684;messageConverter.</p>
<p>&#x9664;&#x4E86;&#x4E0A;&#x8FF0;&#x7684;&#x5DEE;&#x522B;,springMVC&#x914D;&#x7F6E;&#x4E3B;&#x8981;&#x52A0;&#x8F7D;&#x5982;&#x4E0B;&#x5185;&#x5BB9;</p>
<table>
<thead>
<tr>
<th>&#x7EC4;&#x4EF6;&#x7C7B;&#x578B;</th>
<th>&#x540D;&#x79F0;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>controller</td>
<td>controller&#x626B;&#x63CF;</td>
<td>&#x9700;&#x8981;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x626B;&#x63CF;&#x591A;&#x5C11;&#x6587;&#x4EF6;&#x5939;,&#x52A0;&#x8F7D;&#x591A;&#x5C11;controller</td>
</tr>
<tr>
<td>resolver</td>
<td>multipartResolver</td>
<td>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;&#x89E3;&#x6790;&#x5668;</td>
</tr>
<tr>
<td>resolver</td>
<td>localResolver</td>
<td>&#x56FD;&#x9645;&#x5316;&#x53C2;&#x6570;&#x7684;&#x5B58;&#x50A8;&#x89E3;&#x6790;&#x914D;&#x7F6E;</td>
</tr>
<tr>
<td>resolver</td>
<td>viewResolver</td>
<td>&#x9875;&#x9762;&#x89E3;&#x6790;&#x5668;,&#x4F7F;&#x7528;velocity&#x8FDB;&#x884C;&#x9875;&#x9762;&#x89E3;&#x6790;<br><strong style="color:red">&#x4E3A;&#x4E86;&#x53EF;&#x4EE5;&#x8BA9;spring&#x66F4;&#x6362;&#x7248;&#x672C;,&#x8FD9;&#x8FB9;&#x91CD;&#x5199;&#x4E86;spring-velocity</strong></td>
</tr>
<tr>
<td>interceptor</td>
<td>&#x8D44;&#x6E90;&#x62E6;&#x622A;&#x5668;</td>
<td>&#x5141;&#x8BB8;&#x5E94;&#x7528;&#x4ECE;classpath&#x7684;static&#x6587;&#x4EF6;&#x5939;&#x5185;&#x52A0;&#x8F7D;&#x9759;&#x6001;&#x8D44;&#x6E90;</td>
</tr>
<tr>
<td>interceptor</td>
<td>LocaleChangeInterceptor</td>
<td>&#x611F;&#x77E5;&#x7528;&#x6237;&#x5207;&#x6362;&#x56FD;&#x9645;&#x5316;&#x8BED;&#x8A00;&#x7684;&#x53D8;&#x66F4;</td>
</tr>
<tr>
<td>interceptor</td>
<td>AuthorizationInterceptor</td>
<td>&#x767B;&#x5F55;&#x6388;&#x6743;&#x9274;&#x6743;&#x62E6;&#x622A;&#x5668;,&#x8BE6;&#x7EC6;&#x8BF7;&#x770B;<a href="security.html">&#x5B89;&#x5168;</a></td>
</tr>
<tr>
<td>aspect</td>
<td>SecurityCheckerAspect</td>
<td>controller&#x6743;&#x9650;&#x68C0;&#x67E5;,&#x62E6;&#x622A;@SecurityCheck&#x6CE8;&#x89E3;</td>
</tr>
<tr>
<td>aspect</td>
<td>OperLogAspect</td>
<td>&#x8BB0;&#x5F55;&#x7528;&#x6237;&#x64CD;&#x4F5C;&#x8F68;&#x8FF9;,&#x62E6;&#x622A;@OpLog&#x6CE8;&#x89E3;</td>
</tr>
<tr>
<td>aspect</td>
<td>ExporterAspect</td>
<td>&#x5BFC;&#x51FA;&#x62E6;&#x622A;,&#x62E6;&#x622A;@Export&#x6CE8;&#x89E3;,&#x8BE6;&#x7EC6;&#x8BF7;&#x770B;<a href="../base/hyper-Export-readme.md">&#x8D85;&#x7EA7;&#x5BFC;&#x51FA;</a></td>
</tr>
</tbody>
</table>
<h2 id="&#x5C5E;&#x6027;&#x914D;&#x7F6E;">&#x5C5E;&#x6027;&#x914D;&#x7F6E;</h2>
<p>&#x901A;&#x5E38;&#x6211;&#x4EEC;&#x8BA4;&#x4E3A;,&#x53EF;&#x6267;&#x884C;&#x5305;+&#x914D;&#x7F6E;&#x6587;&#x4EF6;=&#x8FD0;&#x884C;&#x73AF;&#x5883;,&#x800C;&#x5BF9;&#x4E8E;&#x53EF;&#x6267;&#x884C;&#x5305;&#x800C;&#x8A00;,&#x5E94;&#x8BE5;&#x662F;&#x4E00;&#x6B21;&#x7F16;&#x8BD1;,&#x591A;&#x6B21;&#x90E8;&#x7F72;,&#x901A;&#x8FC7;&#x5BF9;&#x4E0D;&#x540C;&#x73AF;&#x5883;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x7684;&#x9002;&#x914D;,&#x53EF;&#x4EE5;&#x90E8;&#x7F72;&#x5728;&#x4E0D;&#x540C;&#x7684;&#x73AF;&#x5883;&#x4E0A;.&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x66F4;&#x52A0;&#x63A8;&#x8350;&#x628A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x653E;&#x5728;&#x53EF;&#x6267;&#x884C;&#x5305;&#x7684;&#x5916;&#x9762;,&#x7531;&#x5916;&#x9762;&#x6765;&#x8FDB;&#x884C;&#x63A7;&#x5236;</p>
<p>&#x5728;spring-property.xml&#x4E2D;,&#x6211;&#x4EEC;&#x914D;&#x7F6E;&#x4E86;&#x51E0;&#x4E2A;&#x7CFB;&#x7EDF;&#x542F;&#x52A8;&#x4F1A;&#x52A0;&#x8F7D;&#x7684;&#x5C5E;&#x6027;&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>bean</span> <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>propertyConfigurer<span class="token punctuation">&quot;</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>com.istock.base.spring.dynamicLoad.PropertyStaticLoader<span class="token punctuation">&quot;</span></span> <span class="token attr-name">factory-method</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>getInstance<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>locations<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>list</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>classpath*:config/*.properties<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
            <span class="token comment">&lt;!-- &#x63A8;&#x8350;&#x4F7F;&#x7528;&#x6587;&#x4EF6;&#x65B9;&#x5F0F;&#x8BBF;&#x95EE;&#x914D;&#x7F6E;&#x6587;&#x4EF6; --&gt;</span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>file:/apps/config/new-user/*.properties<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>list</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>bean</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<p>&#x8FD9;&#x8FB9;&#x6709;2&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x914D;&#x7F6E;,&#x4E00;&#x4E2A;&#x6307;&#x5411;classpath&#x4E2D;&#x7684;config&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x7684;&#x6240;&#x6709;&#x914D;&#x7F6E;&#x6587;&#x4EF6;.&#x5728;jvm&#x542F;&#x52A8;&#x7684;&#x65F6;&#x5019;,&#x8FD9;&#x4E2A;&#x914D;&#x7F6E;&#x771F;&#x5B9E;&#x8BFB;&#x7684;&#x662F;main/resources/config/conf.proeprties&#x6587;&#x4EF6;.&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x88AB;&#x6CE8;&#x91CA;&#x6389;&#x7684;&#x914D;&#x7F6E;,&#x662F;&#x6307;&#x5411;&#x4E00;&#x4E2A;file&#x524D;&#x7F00;&#x7684;&#x6587;&#x4EF6;&#x52A0;&#x8F7D;.&#x662F;&#x52A0;&#x8F7D;JVM&#x8FDB;&#x7A0B;&#x6240;&#x5728;&#x673A;&#x5668;&#x4E0A;&#x7684;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;.</p>
<blockquote>
<p>[!WARNING] &#x6709;&#x4E9B;&#x6846;&#x67B6;&#x4F7F;&#x7528;maven&#x6253;&#x5305;&#x65F6;&#x5019;&#x7684;resources&#x6807;&#x7B7E;&#x8FDB;&#x884C;&#x66FF;&#x6362;,&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x6700;&#x7EC8;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x662F;&#x5728;&#x53EF;&#x6267;&#x884C;&#x5305;&#x5185;,&#x4E00;&#x65E6;&#x6362;&#x4E86;&#x4E00;&#x4E2A;&#x73AF;&#x5883;,&#x9700;&#x8981;&#x624B;&#x52A8;&#x66FF;&#x6362;&#x53EF;&#x6267;&#x884C;&#x5305;&#x5185;&#x7684;&#x914D;&#x7F6E;&#x4FE1;&#x606F;,&#x975E;&#x5E38;&#x4E0D;&#x9760;&#x8C31;,&#x4E5F;&#x4E0D;&#x80FD;&#x4F7F;&#x7528;jenkins&#x8FDB;&#x884C;&#x81EA;&#x52A8;&#x5316;&#x90E8;&#x7F72;.&#x53E6;&#x5916;&#x8FD9;&#x79CD;&#x53D1;&#x5305;&#x65B9;&#x5F0F;,&#x56E0;&#x4E3A;&#x9002;&#x914D;&#x4E86;&#x751F;&#x4EA7;&#x73AF;&#x5883;,&#x800C;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x53C8;&#x5728;&#x53EF;&#x6267;&#x884C;&#x5305;&#x5185;,&#x8FD9;&#x4E2A;&#x53EF;&#x6267;&#x884C;&#x5305;&#x65E0;&#x6CD5;&#x5728;&#x73AF;&#x5883;&#x4E4B;&#x5916;&#x7684;&#x6D4B;&#x8BD5;&#x73AF;&#x5883;&#x8FD0;&#x884C;,&#x4F1A;&#x5BFC;&#x81F4;&quot;<strong style="color:red">&#x751F;&#x4EA7;&#x7684;&#x5305;&#x6CA1;&#x6709;&#x7ECF;&#x8FC7;&#x6D4B;&#x8BD5;</strong>&quot;&#x7684;&#x6096;&#x8BBA;. </p>
</blockquote>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; senvon 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">Bilibili,&#x5934;&#x6761;&#x53F7;,&#x5FAE;&#x4FE1;&#x53F7;&#xFF1A;&#x8BF7;&#x641C;&#x7D22;  &#x968F;senvon&#x98DE;
2020-08-26 15:55:16
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="deploy.html" class="navigation navigation-prev " aria-label="Previous page: 部署集成">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="sso.html" class="navigation navigation-next " aria-label="Next page: SSO集成">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"spring配置","level":"1.5.3","depth":2,"next":{"title":"SSO集成","level":"1.5.4","depth":2,"path":"backSample/sso.md","ref":"backSample/sso.md","articles":[]},"previous":{"title":"部署集成","level":"1.5.2","depth":2,"path":"backSample/deploy.md","ref":"backSample/deploy.md","articles":[]},"dir":"ltr"},"config":{"plugins":["search-plus","-lunr","-search","tbfed-pagefooter","simple-page-toc","insert-logo","back-to-top-button","toggle-chapters","code","lightbox","copy-code-button","search-pro","emphasize","splitter","mermaid-gb3","-sharing","sharing-plus","prism","-highlight","flexible-alerts","page-toc-button","baidu","pageview-count","bilibili","donate","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy senvon 2020","modify_label":"Bilibili,头条号,微信号：请搜索  随senvon飞"},"prism":{},"emphasize":{},"livereload":{},"simple-page-toc":{"maxDepth":5,"skipFirstH1":true},"splitter":{},"search-pro":{},"bilibili":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"images/toutiao.jpg","alipayText":"头条号","button":"联系方式","title":"联系方式","wechat":"images/weixin.PNG","wechatText":"公众号"},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"lightbox":{"jquery":true,"sameUuid":false},"page-toc-button":{"maxTocDepth":5,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"flat","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"copy-code-button":{},"baidu":{"token":"51550945f89f43511a44753249ab6675"},"sharing":{"qq":true,"all":["douban","qq","qzone","weibo"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{},"insert-logo":{"style":"background: none; height: 170px; width: 200px","url":"images/logo3.jpg"},"search-plus":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"启路框架-使用手册","language":"zh-hans","backplugin":["lightbox"],"gitbook":"*","description":"启路框架-使用手册"},"file":{"path":"backSample/config.md","mtime":"2020-08-26T07:55:16.682Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-10-19T02:57:27.717Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-baidu/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

